
<%@ page import="fleet_management.FuelConsumption" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'fuelConsumption.label', default: 'FuelConsumption')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-fuelConsumption" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="list-fuelConsumption" class="content scaffold-list" role="main">
			<h1 style="margin-left:225px;"><g:message code="default.list.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<div id="tableWrapp" style="margin-left: 225px;">
			<table>
				<thead>
					<tr>
					
						<g:sortableColumn property="vehicleNumber" title="${message(code: 'fuelConsumption.vehicleNumber.label', default: 'Vehicle Number')}" />
						
						<g:sortableColumn property="adminRole" title="${message(code: 'fuelConsumption.adminRole.label', default: 'Region')}" />
					
						<g:sortableColumn property="quantityRefuled" title="${message(code: 'fuelConsumption.quantityRefuled.label', default: 'Quantity Refuled')}" />
						
						<g:sortableColumn property="place" title="${message(code: 'fuelConsumption.place.label', default: 'Place')}" />
						
						<g:sortableColumn property="date" title="${message(code: 'fuelConsumption.date.label', default: 'Date')}" />
					
						<g:sortableColumn property="totalCost" title="${message(code: 'fuelConsumption.totalCost.label', default: 'Total Cost')}" />
						
						<g:sortableColumn property="reFuledOnKM" title="${message(code: 'fuelConsumption.reFuledOnKM.label', default: 'Refuled on KM')}" />
					
						<g:sortableColumn property="driverName" title="${message(code: 'fuelConsumption.driverName.label', default: 'Refuled By')}" />
						
						
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${fuelConsumptionInstanceList}" status="i" var="fuelConsumptionInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${fuelConsumptionInstance.id}">${fieldValue(bean: fuelConsumptionInstance, field: "vehicleNumber")}</g:link></td>
					
						<td>${fieldValue(bean: fuelConsumptionInstance, field: "quantityRefuled")}</td>
						
						<td>${fieldValue(bean: fuelConsumptionInstance, field: "place")}</td>
					
						<td><g:formatDate format="MMMM dd, yyyy" date="${fuelConsumptionInstance.date}" /></td>
									
						<td>${fieldValue(bean: fuelConsumptionInstance, field: "totalCost")}</td>
						
						<td>${fieldValue(bean: fuelConsumptionInstance, field: "reFuledOnKM")}</td>
						
						<td>${fieldValue(bean: fuelConsumptionInstance, field: "driverName")}</td>
						
						<td>${fieldValue(bean: fuelConsumptionInstance, field: "adminRole")}</td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
			</div>
			<div class="pagination">
				<g:paginate total="${fuelConsumptionInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
